Declare Function FtpInit Lib "FTP4W.DLL" (ByVal HWND As Integer) As Integer
Declare Function FtpRelease Lib "FTP4W.DLL" () As Integer
'
'* Connection
'
Declare Function FtpLogin Lib "FTP4W.DLL" (ByVal Host As String, ByVal User As String, ByVal Password As String, ByVal HWND As Integer, ByVal msge As Integer) As Integer
Declare Function FtpOpenConnection Lib "FTP4W.DLL" (ByVal Host As String) As Integer
Declare Function FtpCloseConnection Lib "FTP4W.DLL" () As Integer
Declare Function FtpLocalClose Lib "FTP4W.DLL" () As Integer
'
'* authentification
'
Declare Function FtpSendUserName Lib "FTP4W.DLL" (ByVal UserName As String) As Integer
Declare Function FtpSendPasswd Lib "FTP4W.DLL" (ByVal Passwd As String) As Integer
'
'* commands
'
Declare Function FtpHelp Lib "FTP4W.DLL" (ByVal Arg As String, ByVal Buf As String, ByVal BufSize As Integer) As Integer
Declare Function FtpCWD Lib "FTP4W.DLL" (ByVal Path As String) As Integer
Declare Function FtpQuote Lib "FTP4W.DLL" (ByVal Cmd As String, ByVal ReplyBuf As String, ByVal BufSize As Integer) As Integer
Declare Function FtpSetType Lib "FTP4W.DLL" (ByVal Typ As Integer) As Integer '
'
'* file transfer
'
Declare Function FtpAbort Lib "FTP4W.DLL" () As Integer
'how to handle 3rd parameter see also FtpSetType
Declare Function FtpSendFile Lib "FTP4W.DLL" (ByVal Lcl As String, ByVal Remote As String, ByVal Typ As Integer, ByVal Notify As Integer, ByVal HWND As Integer, ByVal msge As Integer) As Integer
Declare Function FtpRecvFile Lib "FTP4W.DLL" (ByVal Remote As String, ByVal Lcl As String, ByVal Typ As Integer, ByVal Notify As Integer, ByVal HWND As Integer, ByVal msge As Integer) As Integer
'
Declare Function FtpGetFileSize Lib "FTP4W.DLL" () As Long
'
'* Directory
'
Declare Function FtpDir Lib "FTP4W.DLL" (ByVal Def As String, ByVal LocalFile As String, ByVal LongDir As Integer, ByVal HWND As Integer, ByVal msge As Integer) As Integer
'
'* specials
'
Declare Function FtpBytesTransfered Lib "FTP4W.DLL" () As Long
Declare Function FtpBytesToBeTransfered Lib "FTP4W.DLL" () As Long
Declare Sub FtpSetDefaultTimeOut Lib "FTP4W.DLL" (ByVal nTo_in_sec As Integer)
Declare Sub FtpSetDefaultPort Lib "FTP4W.DLL" (ByVal nDefPort As Integer)
Declare Sub FtpSetAsynchronousMode Lib "FTP4W.DLL" ()
Declare Sub FtpSetSynchronousMode Lib "FTP4W.DLL" ()
Declare Function FtpIsAsynchronousMode Lib "FTP4W.DLL" () As Integer
Declare Sub FtpSetNewDelay Lib "FTP4W.DLL" (ByVal X As Integer)
Declare Sub FtpSetNewSlices Lib "FTP4W.DLL" (ByVal X As Integer, ByVal Y As Integer)
'
'* Utilities functions
'
Declare Function WEP Lib "FTP4W.DLL" (ByVal nType As Integer) As Integer
Declare Function FtpSetVerboseMode Lib "FTP4W.DLL" (ByVal bVerBoseMode As Integer, ByVal HWND As Integer, ByVal wMsg As Integer) As Integer
'
Function FTP4W_Error (ErrorValue As Integer) As String